const appObject = {
  // appId:               [ app名称,  主体],  
  "tt0ab27c0f9582846701": ["芋泥答题", "爱双"],
  "tt941fe2a20b2f6c8801": ["沙盒", "爱双"],
  "tt4d593be4d269c39801": ["木知快测", "爱双"],
  "ttdab2ac0f4582547801": ["夏趣快测", "爱双"],
  "tt78a10e1ce791f17501": ["红玫瑰趣测", "爱双"],
  "ttb895ce2827a5314501": ["百合答题", "爱双"],
}

let appId = ""
if (tt.canIUse("getEnvInfoSync")) {
  const { microapp } = tt.getEnvInfoSync();
  appId = microapp.appId;
} else {
  tt.showModal({
    title: "提示",
    content: "当前客户端版本过低，无法使用该功能，请升级客户端后重新打开。",
    showCancel: false,
  });
}


module.exports = {
  // 获取当前app配置信息
  getAppConfigInfo: () => {
    const [appName, mainBody] = appObject[appId]
    return { appId, appName, mainBody }
  },
};


